package com.example.demo.controller;

import com.example.demo.domain.FizzBuzz;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fizz-buzz")
public class FizzBuzzController {

  @RequestMapping("/{num}")
  public String fizzBuzz(@PathVariable Integer num ){
    return FizzBuzz.fizzBuzz(num);
  }

}
